<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ include file="/pages/common/header.jsp"%>
<jdf:themeFile file="jquery.jqGrid.css"/>
<jdf:themeFile file="jqGrid/i18n/grid.locale-cn.js" />
<jdf:themeFile file="jqGrid/jquery.jqGrid.src.js" />
</head>
<body>
	<div class="contentBody contentborder">
		<div class="tab-pane" id="tabPane">
			<div id="message">${message}</div>
			<div class="tab-page" id="tabPage1">
				<h1 class="tab">排期表</h1>
				<div class="contentborder tableForm">
					<jdf:form bean="entity" scope="request">
						<form action="${dynamicDomain}/schedule/save?action=${param.action}" method="post" id="Order">
							<input type="hidden" name="id">
							<input type="hidden" name="objectId">
							<input type="hidden" name="finished">
							<input type="hidden" name="purchaseId">
							<input type="hidden" name="supplierId">
							<input type="hidden" name="companyId">
							<input type="hidden" name="purchaseItemId">
							<table class="inputTable">
								<tr>
									<td class="label cancelBorderLeft" style="width: 16%">
									     <label for="purchaseNo">采购单编号：</label>
									</td>
									<td class="content"  style="width: 34%">${entity.purchaseNo}</td>
									<td class="label" style="width: 16%">
                                        <label for="type">生产工厂：</label>
                                    </td>
                                    <td class="content"  style="width: 34%">
                                        ${entity.supplier.name}
                                    </td>
								</tr>
								<tr>
                                    <td class="label cancelBorderLeft">
                                        <label for="type">客人产品编号：</label>
                                    </td>
                                    <td class="content" colspan="3">
                                         <input type="text" name="customerPurchaseNo">
                                    </td>
                                </tr>
								<tr>
                                    <td class="label cancelBorderLeft">
                                        <label for="name">中文名称：</label>
                                    </td>
                                    <td class="content">
                                       <input type="text" name="name">
                                    </td>
                                    <td class="label">
                                        <label for="name">英文名称：</label>
                                    </td>
                                    <td class="content">
                                       <input type="text" name="englishName">
                                    </td>
                                </tr>
                                <tr>
                                    <td class="label cancelBorderLeft">
                                        <label for="quantity">生产数量：</label>
                                    </td>
                                    <td class="content">
                                        <input type="text" name="quantity">
                                    </td>
                                    <td class="label">
                                        <label for="unit">单位：</label>
                                    </td>
                                    <td class="content">
                                        <select name="unit">
                                            <option value=""></option>
                                            <jdf:select dictionaryId="1008"/>
                                        </select>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="label cancelBorderLeft">
                                        <label for="version">版本：</label>
                                    </td>
                                    <td class="content" colspan="3">
                                        <input type="text" name="version">
                                    </td>
                                </tr>
								<tr>
                                    <td class="label cancelBorderLeft">
                                        <label for="fileDate">来文件时间：</label>
                                    </td>
                                    <td class="content">
                                        <input type="text" size="12" name="fileDate" class="Wdate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true})">
                                    </td>
                                    <td class="label">
                                        <label for="bluePaperDate">邮寄蓝纸时间：</label>
                                    </td>
                                    <td class="content">
                                        <input type="text" size="12" name="bluePaperDate" class="Wdate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true})">
                                    </td>
                                </tr>
							    <tr>
                                    <td class="label cancelBorderLeft">
                                        <label for="confirmProduceDate">确定生产时间：</label>
                                    </td>
                                    <td class="content">
                                        <input type="text" size="12" name="confirmProduceDate" class="Wdate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true})">
                                    </td>
                                    <td class="label">
                                        <label for="sampleDate">样板提供时间：</label>
                                    </td>
                                    <td class="content">
                                        <input type="text" size="12" name="sampleDate" class="Wdate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true})">
                                    </td>
                                </tr>
                                <tr>
                                    <td class="label cancelBorderLeft">
                                        <label for="confirmSampleDate">样板OK时间：</label>
                                    </td>
                                    <td class="content">
                                        <input type="text" size="12" name="confirmSampleDate" class="Wdate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true})">
                                    </td>
                                    <td class="label">
                                        <label for="boxMarkDate">箱唛：</label>
                                    </td>
                                    <td class="content">
                                        <input type="text" size="12" name="boxMarkDate" class="Wdate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true})">
                                    </td>
                                </tr>
                                <tr>
                                    <td class="label cancelBorderLeft">
                                        <label for="piNo">P/I单号：</label>
                                    </td>
                                    <td class="content">
                                       <input type="text" name="piNo">
                                    </td>
                                    <td class="label">
                                        <label for="closeDate">截仓时间：</label>
                                    </td>
                                    <td class="content">
                                        <input type="text" size="12" name="closeDate" class="Wdate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true})">
                                    </td>
                                </tr>
                                <tr>
                                    <td class="label cancelBorderLeft">
                                        <label for="sendDate">走货时间：</label>
                                    </td>
                                    <td class="content">
                                       <input type="text" id="sendDate" size="12" name="sendDate" class="Wdate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true})">
                                    </td>
                                     <td class="label">
                                        <label for="progress">当前进度：</label>
                                    </td>
                                    <td class="content">
                                        <input type="text" name="progress">
                                    </td>
                                </tr>
								<tr>
								    <td class="label cancelBorderLeft">
                                        <label for="remark">备注：</label>
                                    </td>
                                    <td class="content" colspan="3">
                                        <textarea rows="5" cols="55" name="remark"></textarea>
                                    </td>
								</tr>
								<tr>
								    <td class="bottomLabel" colspan="4">
									    <div class="right" style="margin: 2px;">
									        <c:if test="${view!=1}">
									        <button type="submit">提交</button>
									        </c:if>
					                        <c:choose>
					                            <c:when test="${param.action=='page'}">
					                                <button type="button" onclick="toUrl('${dynamicDomain}/schedule/back')">返回</button>
					                            </c:when>
					                            <c:otherwise>
					                                <button type="button" onclick="toUrl('${dynamicDomain}/schedule/${param.action}')">返回</button>
					                            </c:otherwise>
					                        </c:choose>
					                    </div>
									</td>
								</tr>
							</table>
						</form>
					</jdf:form>
				</div>
			</div>
		</div>
	</div>
	<jdf:tableLabelValidate domain="Schedule"/>
	<script type="text/javascript">
	   viewThisPage("${view}");
	</script>
	
</body>
</html>